/************************************************************************/
/* 
mpeg4 divx encoder opts setting
author pengl
date 2008-11-27
*/
/************************************************************************/

#include "StdAfx.h"
#include ".\mpeg4enc_opts.h"
#include <stdio.h>

static char *gmpeg4enc_name = "mpegenc_opts";
static char gmpeg4enc_opts[1024] = {0};

Cmpeg4enc_opts::Cmpeg4enc_opts(void)
{
	m_vbitrate = 629;
	m_pass = 1;
}

Cmpeg4enc_opts::Cmpeg4enc_opts(int vbitrate, int pass)
{
	m_vbitrate = vbitrate;
	m_pass = pass;
}

Cmpeg4enc_opts::~Cmpeg4enc_opts(void)
{

}


char *Cmpeg4enc_opts::get_myname() const
{
	return gmpeg4enc_name;
}

char *Cmpeg4enc_opts::get_mpeg4enc_opts()
{
	sprintf(gmpeg4enc_opts, "-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=%d:vpass=%d ",
			m_vbitrate,
			m_pass);

	return gmpeg4enc_opts;
}
